$OpenBSD: patch-bam-0_2_0_src_driver_gcc_bam,v 1.1.1.1 2009/01/18 17:53:36 ajacoutot Exp $
--- bam-0.2.0/src/driver_gcc.bam.orig	Fri Jan 16 18:44:47 2009
+++ bam-0.2.0/src/driver_gcc.bam	Fri Jan 16 18:45:47 2009
@@ -82,8 +82,8 @@ end
 function SetDriversGCC(settings)
 	if settings.cc then
 		settings.cc.extension = ".o"
-		settings.cc.c_compiler = "gcc"
-		settings.cc.cxx_compiler = "g++"
+		settings.cc.c_compiler = "${CC} ${CFLAGS}"
+		settings.cc.cxx_compiler = "${CXX} ${CFLAGS}"
 		settings.cc.DriverCTest = DriverCTest_GCC
 		settings.cc.DriverC = DriverC_GCC
 		settings.cc.DriverCXX = DriverCXX_GCC	
